package cn.getech.data.metadata.model.res.owner;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @description: 元数据所属 树形数据结构
 * @author: wangzhaowen：kiss
 * @create: 2021/4/6 11:38
 * @version: 2021/4/6
 **/
@Data
public class Owner {
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "父id")
    private Integer parentId;
    private List<Owner> children;
    //public Owner(){}

    public Owner(Integer id, String name, Integer parentId) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
    }
}
